.class public Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;
.super Landroid/app/Activity;


# instance fields
.field a:I


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    const/4 v0, 0x0

    iput v0, p0, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->a:I

    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 3

    const/4 v2, 0x0

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual {p0, v2}, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->setResult(I)V

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "appWidgetId"

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->a:I

    :cond_0
    iget v0, p0, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->a:I

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->finish()V

    :cond_1
    invoke-static {p0}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

    move-result-object v0

    iget v1, p0, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->a:I

    invoke-virtual {v0, v1}, Landroid/appwidget/AppWidgetManager;->getAppWidgetInfo(I)Landroid/appwidget/AppWidgetProviderInfo;

    move-result-object v0

    invoke-static {p0}, Lcom/estrongs/android/taskmanager/ht;->h(Landroid/content/Context;)I

    move-result v1

    iput v1, v0, Landroid/appwidget/AppWidgetProviderInfo;->updatePeriodMillis:I

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string v1, "appWidgetId"

    iget v2, p0, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->a:I

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/4 v1, -0x1

    invoke-virtual {p0, v1, v0}, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/estrongs/android/taskmanager/widget/TmWidgetConfigure;->finish()V

    return-void
.end method
